package mobi.hami.huapin.service.impl;

import mobi.hami.huapin.dao.SkuProductattributeMappingMapper;
import mobi.hami.huapin.model.SkuProductattributeMapping;
import mobi.hami.huapin.service.SkuProductattributeMappingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SkuProductattributeMappingServiceImpl implements SkuProductattributeMappingService {
    @Autowired
    private SkuProductattributeMappingMapper skuProductattributeMapping;
    public  int Add(SkuProductattributeMapping maps){
        return skuProductattributeMapping.insert(maps);
    }
   public List<SkuProductattributeMapping> selectAttribute_mapping(int skuid){
       return skuProductattributeMapping.selectAttribute_mapping(skuid);

   }
    public  int   update(SkuProductattributeMapping mapping){
        return skuProductattributeMapping.updateByPrimaryKey(mapping);
    }
    @Override
    public int DeleteAll(int skuid){
        return skuProductattributeMapping.DeleteAll(skuid);
    }
}
